cmake_minimum_required(VERSION 3.3)
project(CustomJVM)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

include_directories(include)
include_directories(${PROJECT_BINARY_DIR})

set(JAVA_DIR \"${PROJECT_SOURCE_DIR}/java\")

configure_file("${PROJECT_SOURCE_DIR}/Config.h.in"
        "${PROJECT_BINARY_DIR}/Config.h")


set(SOURCE_FILES main.cpp include/types.h include/constants.h include/opcodes.h src/opcodes.cpp include/JavaClass.h include/ClassHeap.h include/ObjectHeap.h src/JavaClass.cpp src/ClassHeap.cpp include/FilePathManager.h src/FilePathManager.cpp src/ObjectHeap.cpp include/ExecutionEngine.h src/ExecutionEngine.cpp include/NativeMethods.h src/NativeMethods.cpp)
add_executable(CustomJVM ${SOURCE_FILES})